package org.kumas.bigdata.hdfs3.rpc;

import org.kumas.bigdata.hdfs3.ha.HAService;
import org.kumas.bigdata.hdfs3.protocol.HAServiceProtocol;

/*************************************************
 * TODO_Kumas
 *  Author： KumasZhang
 *  DateTime： 2021-12-06 8:38
 *  Description： 
 **/
public class HAServiceProtocolImpl implements HAServiceProtocol {
    private static final HAService HA_SERVICE = new HAService();

    @Override
    public Response heartbeat(String nodeId, String msg) {
        return HA_SERVICE.heartbeat(nodeId, msg);
    }
    @Override
    public Response registerInfo(RegInfo info) {
        return HA_SERVICE.registerInfo(info);
    }
}
